import { CoolController, BaseController } from '@cool-midway/core';
import { Body, Inject, Post, Get, Query } from '@midwayjs/core';
import { FlockCommentEntity } from '../../entity/comment'; 
import { FlockCommentService } from '../../service/comment'; 

/**
 * flock模块-评论信息
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'list', 'page'],
  entity: FlockCommentEntity,
  service: FlockCommentService,
  pageQueryOp: {
    keyWordLikeFields: ['content', 'commenter', 'commentTarget'],
    fieldEq: ['status', 'type'],
  }
})
export class AdminFlockCommentController extends BaseController {
    @Inject()
    flockCommentService: FlockCommentService;
}
